package com.three.digit.model;

public class Plan {
	private Point a;
	private Point b;
	private Point c;

	public Plan(Point a, Point b, Point c) {
		this.a = a;
		this.b = b;
		this.c = c;
	}

	public boolean isPlan() {
		int lx = (a.getX() - b.getX()) * (a.getX() - b.getX())
				+ (a.getY() - b.getY()) * (a.getY() - b.getY())
				+ (a.getZ() - b.getZ()) * (a.getZ() - b.getZ());

		int ly = (c.getX() - b.getX()) * (c.getX() - b.getX())
				+ (c.getY() - b.getY()) * (c.getY() - b.getY())
				+ (c.getZ() - b.getZ()) * (c.getZ() - b.getZ());

		int lz = (c.getX() - a.getX()) * (c.getX() - a.getX())
				+ (c.getY() - a.getY()) * (c.getY() - a.getY())
				+ (c.getZ() - a.getZ()) * (c.getZ() - a.getZ());

		Math.max(Math.max(lx, ly), lz);

		return false;
	}

	public Point getA() {
		return a;
	}

	public void setA(Point a) {
		this.a = a;
	}

	public Point getB() {
		return b;
	}

	public void setB(Point b) {
		this.b = b;
	}

	public Point getC() {
		return c;
	}

	public void setC(Point c) {
		this.c = c;
	}
}
